<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        let set = new Set(['a', 'b']);
        console.log(set.size);


        //
        set.add("c").add("d");
        console.log(set.size);
        //
        set.delete("a");
        console.log(set.size);
        //
        // set.clear();
        console.log(set.size);
        set.forEach(val => {
                console.log(val)
            }

        )
    </script>
</body>

</html>